use std::io::stdin;
fn main() {
    let mut waring_level = String::new();
    stdin()
    .read_line(&mut waring_level)
    .expect("failed!");
    // println!("{}", waring_level);
    let waring_level = waring_level.trim().parse::<u8>().unwrap();
    match waring_level {
        1 => println!("ERROR"),
        2 => println!("WARNING"),
        3 => println!("LOG"),
        _ => println!("UNKNOWN")
    }
}

